home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_48.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  41KB  |  816x1056  |  8-bit (254 colors)
Labels: book | bulletin board | reckoner | sky
OCR: 1-44 Mops Tutorial In this example, a. b and in the curly brackets are named parameters that take on the values in the stack. The backslash indicates that the names to the right are local variables that will be called into action within the definition In the example, the numerator and denominator are cal culated separately and stored (->) in their respective local yariables. Then, the local variables are recalled in the proper order for the dsvon operation to reach the result. An important thing to remember is that local variables aren't initialized to any particular value at the beginning. of the definition. Don't assume they 're initially zero, let's say. They might have anything at a them, and might be different in different runs your program. Thus your first use of a local variable sho ...